<?php

/**
 * Created by PhpStorm.
 * User: evan
 * Date: 2016/12/19
 * Time: 下午2:35
 */
class Report extends MY_Api_Controller
{
    /**
     * 举报
     */
    public function tip()
    {
        $uid    = $this->uid;
        $to_uid = (int)$this->input->get_post('to_uid');
        $reason = trim($this->input->get_post('reason'));


        $this->load->service('user/service_user_report');
        $data = $this->service_user_report->tip($uid, $to_uid, $reason);


        $this->json_output($data['data'], $data['status']);
    }
}